const voidType: string[] = ['image'];
const withEditableVoids = editor => {
    const { isVoid } = editor;

    editor.isVoid = element => {
        if (voidType.findIndex(element.type) > -1) {
            return true;
        }
        return isVoid(element);
    };

    return editor;
};
export default withEditableVoids;
